<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2022/12/14
  Time: 11:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>访问主页</title>
</head>
<body>
<h1>当前访问页面次数为:<%=session.getAttribute("count")%></h1>
<a href="<%=response.encodeURL(request.getContextPath()+"/count")%>">URL重写方式一</a>
<a href="<%=response.encodeRedirectURL(request.getContextPath()+"/count")%>">URL重写方式二</a>
</body>
</html>
